package com.gzedu.module.service.role.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gzedu.common.sys.service.impl.BaseService;
import com.gzedu.module.dao.role.IRolePermissionDao;
import com.gzedu.module.modle.role.RolePermission;
import com.gzedu.module.service.role.IRolePermissionService;

@Service
public class RolePermissionService extends BaseService<RolePermission> implements IRolePermissionService{
	@Autowired
	private IRolePermissionDao rolePermissionDao;

	public List<RolePermission> findListByRoleCode(RolePermission rolePermission) {
		// TODO Auto-generated method stub
		return rolePermissionDao.findListByRoleCode(rolePermission);
	}

	public int deleteByRoleCode(RolePermission rolePermission) {
		// TODO Auto-generated method stub
		return rolePermissionDao.deleteByRoleCode(rolePermission);
	}

}
